package com.cskaoyan.exception;

import com.cskaoyan.bean.common.BaseRespVo;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: bwj
 * @Date: 2022/09/11/14:21
 * @Description: 当出现任何异常，会返回“该接口正在维护，请稍后重试”
 */
@RestControllerAdvice
public class HandlerException {

    public BaseRespVo<String> handleException(Exception e) {
        return BaseRespVo.ok("接口正在维护，请稍后重试");
    }
}
